import {createBundleRenderer} from 'react-router-dom';
const {  AuthRoute } = require("@/components/AuthRoute");
const {  Layout } = require("@/pages/Layout");
const {  Home } = require("@/pages/Home");
const {  Publish } = require("@/pages/Publish");
const {  Article } = require("@/pages/Article");
const {  Login } = require("@/pages/Login");

const router = createBundleRenderer([
    {path:"/", element:<AuthRoute><Layout/></AuthRoute> , children:[
        {path:"/home", element:<Home/>},
        {path:"/article", element:<Article/>},
        {path:"/publish", element:<Publish/>},
    ]},
    {path:"/login", element:<Login/>},

])
export default router